//
//  NothingMessageView.m
//  PatientApp
//
//  Created by chirui on 2017/6/9.
//  Copyright © 2017年 Shui. All rights reserved.
//

#import "NothingMessageView.h"

@implementation NothingMessageView

+(UIView *)creatNothingMessageViewFrame:(CGRect)rec andMessageStr:(NSString *)str onView:(UIView *)view {


    UIView *  noBodyView =[[UIView alloc]initWithFrame:rec];
    noBodyView.backgroundColor =[UIColor clearColor];
    UIImageView * image =[[UIImageView alloc]initWithFrame:CGRectMake(50,30, 100, 100)];
    image.image =[UIImage imageNamed:@"icon_expression_no date"];
    [noBodyView addSubview:image];
    
    UILabel * messageLabel =[[UILabel alloc]initWithFrame:CGRectMake(0, 130,200, 20)];
    messageLabel.text =str;
    messageLabel.textColor = Color(169,169,169);
    messageLabel.textAlignment = NSTextAlignmentCenter;
    messageLabel.font =[UIFont systemFontOfSize:14];
    [noBodyView addSubview:messageLabel];
    
    return noBodyView;

}

@end
